package com.smz.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.smz.entity.PageEntity;
import com.smz.entity.TStaff;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TStaffService extends IService<TStaff> {
    PageEntity<TStaff> findTStaffsPage(Integer current);

    List<TStaff> findAllTStaffsById(@Param("id") Integer id);


    TStaff findTStaffById(@Param("id") Integer id);

    IPage<TStaff> findTStaffByNameId(Integer start, Integer length,
                                     String name, Integer dId);


    List<TStaff>  findAllTStaffs();

    void  modifyTStaffById(@Param("id") Integer id ,@Param("accountStatus") String accountStatus);
}
